<template>
  <div class="main">
    <iframe id="mainFrame" src="" frameborder="0"></iframe>
  </div>
</template>

<script>
export default {
  created () {
    this.initFrame()
  },
  methods: {
    initFrame () {
      setTimeout(() => {
        var cod = localStorage.getItem('codes')
        // var cod = '00000'
        var url = 'http://111.160.78.62:9936/indexCity.html?ClientNo=' + cod
        document.getElementById('mainFrame').src = url
      }, 100)
    }
  }
}
</script>

<style>
.main,
iframe {
  margin-top: 5px;
  width: 100%;
  height: 100%;
}
</style>
